package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.每周设定目标Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by lusong on 2017/1/4.
 */
public interface 每周设定目标Repository extends JpaRepository<每周设定目标Model, Integer>, JpaSpecificationExecutor<每周设定目标Model> {

    @Query("select a from 每周设定目标Model a where a.许可 = ?1 and a.年月 = ?2 and a.第N周 = ?3 and a.车型 = ?4")
    List<每周设定目标Model> findEveryWeekOfTarget(String permit, String yearMonth, String week, String carCode);
}
